package MyStaticProxy;

public class Company implements UserDao{

    private UserDaoImpl userDao;

    public Company(UserDaoImpl userDao) {
        this.userDao = userDao;
    }

    @Override
    public void work() {
        System.out.println("框架是主干，技术是基础");
        userDao.work();
    }
    @Override
    public void say() {
        userDao.say();
        System.out.println("有想法是成功的前提");
    }
}
